const fs = require('fs'),
      path = require('path'),
      process = require("process");

const staticPath = `${process.cwd()}/public`;

const { readFileSync } = fs;

const home = ( req, res, next ) => {
    const assetPath = `${staticPath}/cnode/asset.json`;
    const asset  = readFileSync( assetPath ,`utf-8`);
    res.render('cnode' , {
        static:JSON.parse(asset),
        staticUrl:""
    });
};


const api = ( req, res, next ) => {

};

exports.home = home;

exports.api = api;